import webrequest from '@/utils/webServerRequest'
//获取分类信息
export const getClassFilterList = (paramete) => {
  return webrequest({
    url: `$invitation/square_pc_api/square/filter`,
    method: 'get',
    paramete
  })
}

//获取达人信息信息
export const getIntelligentList = (data, paramete) => {
  return webrequest({
    url: `$invitation/square_pc_api/square/search_feed_author`,
    method: 'post',
    paramete,
    data
  })
}

//获取模糊匹配列表
export const getFuzzyMatchingList = (paramete, data) => {
  return webrequest({
    url: `$invitation/square_pc_api/square/filter`,
    method: 'get',
    paramete,
    data
  })
}

//获取批量邀约中的个人商品数据
export const getInvitationPersonCommodityList = (paramete) => {
  return webrequest({
    url: `$invitation/connection/pc/im/promotion/list`,
    method: 'get',
    paramete
  })
}

export const sendInvite = (paramete, data) => {
  return webrequest({
    url: `$invitation/connection/pc/im/invite/card/send`,
    method: 'post',
    headers: {
      'Content-Type': 'application/json',
      Accept: 'application/json, text/plain, */*',
      Origin: 'https://buyin.jinritemai.com',
      'Sec-Fetch-Site': 'same-origin',
      Referer: 'https://buyin.jinritemai.com/dashboard/servicehall/daren-square'
    },
    paramete,
    data
  })
}
export const personMsg = (paramete) => {
  return webrequest({
    url: `$invitation/connection/pc/im/card/sender/msg`,
    method: 'get',
    headers: {
      Accept:
        'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'
    },
    paramete
  })
}

export const continueCommunicate = (paramete) => {
  return webrequest({
    url: `$invitation/connection/pc/im/account`,
    method: 'get',
    headers: {
      Accept: 'application/json, text/plain, */*'
    },
    paramete
  })
}

export const tips = (paramete) => {
  return webrequest({
    url: `/api/trade_online_pc_api/shop/intercept/tips`,
    method: 'get',
    headers: {
      Accept: 'application/json, text/plain, */*'
    },
    paramete
  })
}
